﻿using System.Collections.Generic;
using FX.CC.Andon.Entity.BasicDataManage;

namespace FX.CC.Andon.Utility.Common
{
    public class EquipmentComparer : IEqualityComparer<EquipmentEntity>
    {
        public bool Equals(EquipmentEntity x, EquipmentEntity y)
        {
            return x.EqCode == y.EqCode;
        }

        public int GetHashCode(EquipmentEntity obj)
        {
            return obj.EqCode.GetHashCode();
        }

    }
}
